8
https://raw.githubusercontent.com/nataraz123/Spring/master/IOCProj38-P-CNameSpaces/src/main/java/com/nt/test/PAndCNameSpaceTest.java
package com.nt.test;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;

import com.nt.beans.Student;




public class PAndCNameSpaceTest {

	public static void main(String[] args) {
		DefaultListableBeanFactory factory=null;
		XmlBeanDefinitionReader reader=null;
		Student stud=null;
		
		
	   //create IOC container
		factory=new DefaultListableBeanFactory();
		reader=new XmlBeanDefinitionReader(factory);
		reader.loadBeanDefinitions("com/nt/cfgs/applicationContext.xml");
		//get Bean class object
		stud=factory.getBean("st",Student.class);
		System.out.println(stud);
		
		
		
		
		
				

	}

}
